package com.airlenet.webssh.config;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(WebsshProperties.class)
@ServletComponentScan("com.airlenet.webssh")
@ComponentScan("com.airlenet.webssh")
@EnableCaching
public class ApplicationConfig {


//    @Bean
//    public ServletListenerRegistrationBean<EventListener> getDemoListener(){
//        ServletListenerRegistrationBean<EventListener> registrationBean = new ServletListenerRegistrationBean<>();
//        registrationBean.setListener(new ContextLoaderListener());
//        //registrationBean.setOrder(1);
//        return registrationBean;
//    }
}
